package cn.com.lyj6851.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.lyj6851.user.entity.Role;
import cn.com.lyj6851.user.mapper.RoleMapper;
import cn.com.lyj6851.user.service.RoleService;

/**
 * 〈功能简述〉<br>
 * 〈角色〉
 *
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

	@Autowired
	private RoleMapper roleMapper;
	
	@Override
	public List<Role> getRoleByUserId(String userId) {
		
		return roleMapper.getRoleByUserId(userId);
	}
}